package 常用类.Array类.list.List课后练习;

public class Commodity {
    private int proId;
    private String proName;
    private double proSize;
    private double proPrice;
    private int proNum;

    public Commodity() {
    }

    public Commodity(int proId,String proName, double proSize, double proPrice, int proNum) {
        this.proId = proId;
        this.proName = proName;
        this.proSize = proSize;
        this.proPrice = proPrice;
        this.proNum = proNum;
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public double getProSize() {
        return proSize;
    }

    public void setProSize(double proSize) {
        this.proSize = proSize;
    }

    public double getProPrice() {
        return proPrice;
    }

    public void setProPrice(double proPrice) {
        this.proPrice = proPrice;
    }

    public int getProNum() {
        return proNum;
    }

    public void setProNum(int proNum) {
        this.proNum = proNum;
    }

    @Override
    public String toString() {
        return "商品{" +
                "商品编号=" + proId +
                ", 品牌型号='" + proName + '\'' +
                ", 商品尺寸=" + proSize +
                ", 商品价格=" + proPrice +
                ", 商品数量=" + proNum +
                '}';
    }
}
